import request from '@/utils/request'

export function getPriceList (params) {
  return request({
    url: '/basic-api/zd/price/getPriceList',
    method: 'get',
    params
  })
}

export function getHisPriceList (custId) {
	return request({
		url: '/basic-api/zd/price/getHisPriceList/' + custId,
		method: 'get'
	})
}

export function addPrice (data) {
  return request({
    url: '/basic-api/zd/price/add',
    method: 'post',
    data
  })
}

export function updatePrice (data) {
  return request({
    url: '/basic-api/zd/price/update',
    method: 'post',
    data
  })
}

export function removePrice (id) {
  return request({
    url: '/basic-api/zd/price/remove/' + id,
    method: 'post',
  })
}
export function ifuse (id) {
  return request({
    url: '/basic-api/zd/price/ifUse/' + id,
    method: 'post',
  })
}

